#include "MasterConfigHelper.h"
#include "opencv2/myopencv.hpp"

using namespace cv;

void MasterConfigHelper::load( std::string filename /*= "config.xml" */ )
{
	this->filename = filename;
	FileStorage fs(filename, FileStorage::READ);
	fs["detector"] >> detectorName;
	fs["trainDetector"] >> trainDetector;
	fs["recognizer"] >> recognizerName;
	fs["trainRecognizer"] >> trainRecognizer;
	fs["inputType"] >> inputType;
	fs["videoFile"] >> videoFile;
	fs["imageFile"] >> imageFile;
	fs["extractor"] >> extractorName;
}
